package edu.dayu.abstractFactory;

public class FactoryProducer {
    public static AbstractFactory getFactory(String factoryName){
        if (factoryName.equals("shape")){
            return new ShapeFactory();
        }else if (factoryName.equalsIgnoreCase("color")){
            return new ColorFactory();
        }else {
            return null;
        }
    }
}
